package terrain;

import java.awt.Color;
import java.util.ArrayList;

import world.World;

public class ConField {

	private double[][][] concentration;

	private ArrayList<Element> elements;

	public ConField(int x, int y, World world) {
		elements = world.getElements();
		concentration = new double[elements.size()][x][y];
	}

	public double getConcetration(Element e, int x, int y) {
		return concentration[elements.indexOf(e)][x][y];
	}

	public void setConcetration(Element e, int x, int y, double value) {
		concentration[elements.indexOf(e)][x][y] = value;
	}

}
